$(document).ready(function(){
	
	$('#zdkmyjpz_khm').autocomplete({
		source:function(request,response){
			var param='kmh='+$('#zdkmyjpz_khm').val();	
			$.ajax({
				url: "hello/dohello",
				dataType: "json",
				data:param,
				success: function( resp ) {
					//alert(resp.code);
					response( $.map( resp.datas, function( item ) {
						return {
							label: item.label,
							value: item.value	
							}
					}));
				}
			});
		},
		minLength:2,
		select: function( event, ui ) {
			//log( ui.item ?"Selected: " + ui.item.label :"Nothing selected, input was " + this.value);
			if(ui.item ){
				$('#zdkmyjpz_khm').val(this.value);
			}
		}
	});
})